package at.ac.univie.zsu.aguataplan.util;

import java.util.List;

import javax.swing.JFrame;

import at.ac.univie.zsu.aguataplan.video.util.IExit;

/**
 * @author gerry
 * 
 */
public class ExitHandler {

	// TODO: take care of exit handling
	public static void exit(JFrame frame, List<IExit> iExits) {

		for (IExit e : iExits) {
			e.exit();
		}

		// soft exit
		// frame.dispose();
		System.exit(0);
	}
}
